package cn.kp.learning.service;

import java.util.HashMap;
import java.util.List;

import cn.kp.learning.model.Groups;
import cn.kp.learning.model.GroupsExample;
import cn.kp.learning.model.Organization;
import cn.kp.learning.model.OrganizationExample;

public interface OrganizationService {
	
	int insertGroup(Groups gp);
	
	int deleteGroup(String groupId);
	
	int modifyGroup(Groups gp);

    int countByExample(GroupsExample example);

    List<Groups> selectByExample(GroupsExample example);
	
	int addOrganization(Organization org);
	//delete by orgId
	int deleteOrganization(String orgId);
	
	int modifyOrganization(Organization org);
	
	Organization getOrganization(Organization org);
	
    int countByExample(OrganizationExample example);
    
    List<Organization> selectByExample(OrganizationExample example);

    Organization selectByPrimaryKey(HashMap<String,Object> hm);

    List<Organization> selectCompany(HashMap<String,Object> hm);

    List<Organization> selectDepartment(HashMap<String,Object> hm);
    
    List<Organization> selectOffice(HashMap<String,Object> hm);
    
    List<Organization> selectGroup(HashMap<String,Object> hm);
}
